home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_sh-utils.idb / usr / freeware / catman / u_man / cat1 / test.Z / test
Encoding:
Text File  |  1998-05-21  |  5.4 KB  |  134 lines

  1. /xlv1/freeware/1998.May/sh-utils/1.16b/sh-utils-1.16b.diffbuild/man
  2.  
  3.  
  4.  
  5.      TTTTEEEESSSSTTTT((((1111))))         FFFFSSSSFFFF ((((GGGGNNNNUUUU SSSShhhheeeellllllll    UUUUttttiiiilllliiiittttiiiieeeessss))))           TTTTEEEESSSSTTTT((((1111))))
  6.  
  7.  
  8.  
  9.      NNNNAAAAMMMMEEEE
  10.       test - check file types and compare values
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       tttteeeesssstttt [expr]
  14.       tttteeeesssstttt {--help,--version}
  15.  
  16.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.       This documentation is    no longer being    maintained and may be
  18.       inaccurate or    incomplete.  The Texinfo documentation is now
  19.       the authoritative source.
  20.  
  21.       This manual page documents the GNU version of    tttteeeesssstttt.  Note
  22.       that most shells have    a built-in command by the same name
  23.       and with similar functionality.
  24.  
  25.       tttteeeesssstttt returns a status    of 0 (true) or 1 (false) depending on
  26.       the evaluation of the    conditional expression _e_x_p_r.
  27.       Expressions may be unary or binary.  Unary expressions are
  28.       often    used to    examine    the status of a    file.  There are
  29.       string operators and numeric comparison operators as well.
  30.  
  31.       ----bbbb _f_i_l_e
  32.            True if _f_i_l_e exists and is block    special.
  33.       ----cccc _f_i_l_e
  34.            True if _f_i_l_e exists and is character special.
  35.       ----dddd _f_i_l_e
  36.            True if _f_i_l_e exists and is a directory.
  37.       ----eeee _f_i_l_e
  38.            True if _f_i_l_e exists
  39.       ----ffff _f_i_l_e
  40.            True if _f_i_l_e exists and is a regular file.
  41.       ----gggg _f_i_l_e
  42.            True if _f_i_l_e exists and is set-group-id.
  43.       ----kkkk _f_i_l_e
  44.            True if _f_i_l_e has    its ``sticky'' bit set.
  45.       ----LLLL _f_i_l_e
  46.            True if _f_i_l_e exists and is a symbolic link.
  47.       ----pppp _f_i_l_e
  48.            True if _f_i_l_e exists and is a named pipe.
  49.       ----rrrr _f_i_l_e
  50.            True if _f_i_l_e exists and is readable.
  51.       ----ssss _f_i_l_e
  52.            True if _f_i_l_e exists and has a size greater than zero.
  53.       ----SSSS _f_i_l_e
  54.            True if _f_i_l_e exists and is a socket.
  55.       ----tttt [[[[_f_d]]]]
  56.            True if _f_d is opened on a terminal.  If _f_d is omitted,
  57.            it defaults to 1    (standard output).
  58.       ----uuuu _f_i_l_e
  59.            True if _f_i_l_e exists and its set-user-id bit is set.
  60.       ----wwww _f_i_l_e
  61.  
  62.  
  63.  
  64.      Page 1                         (printed 5/18/98)
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.      TTTTEEEESSSSTTTT((((1111))))         FFFFSSSSFFFF ((((GGGGNNNNUUUU SSSShhhheeeellllllll    UUUUttttiiiilllliiiittttiiiieeeessss))))           TTTTEEEESSSSTTTT((((1111))))
  72.  
  73.  
  74.  
  75.            True if _f_i_l_e exists and is writable.
  76.       ----xxxx _f_i_l_e
  77.            True if _f_i_l_e exists and is executable.
  78.       ----OOOO _f_i_l_e
  79.            True if _f_i_l_e exists and is owned    by the effective user
  80.            id.
  81.       ----GGGG _f_i_l_e
  82.            True if _f_i_l_e exists and is owned    by the effective group
  83.            id.
  84.       _f_i_l_e_1    -nnnntttt _f_i_l_e_2
  85.            True if _f_i_l_e_1 is    newer (according to modification date)
  86.            than _f_i_l_e_2.
  87.       _f_i_l_e_1    -ooootttt _f_i_l_e_2
  88.            True if _f_i_l_e_1 is    older than file2.
  89.       _f_i_l_e_1    ----eeeeffff _f_i_l_e_2
  90.            True if _f_i_l_e_1 and _f_i_l_e_2 have the    same device and    inode
  91.            numbers.
  92.       ----zzzz _s_t_r_i_n_g
  93.            True if the length of _s_t_r_i_n_g is zero.
  94.       ----nnnn _s_t_r_i_n_g
  95.       _s_t_r_i_n_g
  96.            True if the length of _s_t_r_i_n_g is non-zero.
  97.       _s_t_r_i_n_g_1 ==== _s_t_r_i_n_g_2
  98.            True if the strings are equal.
  99.       _s_t_r_i_n_g_1 !!!!==== _s_t_r_i_n_g_2
  100.            True if the strings are not equal.
  101.       !!!! _e_x_p_r
  102.            True if _e_x_p_r is false.
  103.       _e_x_p_r_1    -aaaa _e_x_p_r_2
  104.            True if both _e_x_p_r_1 and _e_x_p_r_2 are    true.
  105.       _e_x_p_r_1    -oooo _e_x_p_r_2
  106.            True if either _e_x_p_r_1 or _e_x_p_r_2 is    true.
  107.       _a_r_g_1 OOOOPPPP _a_r_g_2
  108.            OOOOPPPP is one of ----eeeeqqqq, ----nnnneeee, ----lllltttt, ----lllleeee,    ----ggggtttt, or    ----ggggeeee.  These
  109.            arithmetic binary operators return true if _a_r_g_1 is
  110.            equal, not-equal, less-than, less-than-or-equal,
  111.            greater-than, or    greater-than-or-equal than _a_r_g_2,
  112.            respectively.  _a_r_g_1 and _a_r_g_2 may    be positive integers,
  113.            negative    integers, or the special expression ----llll _s_t_r_i_n_g,
  114.            which evaluates to the length of    _s_t_r_i_n_g.
  115.     OOOOPPPPTTTTIIIIOOOONNNNSSSS
  116.       When GNU tttteeeesssstttt    is invoked with    exactly    one argument, the
  117.       following options are    recognized:
  118.       --_h_e_l_p
  119.            Print a usage message on    standard output    and exit
  120.            successfully.
  121.       --_v_e_r_s_i_o_n
  122.            Print version information on standard output then exit
  123.            successfully.
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.      Page 2                         (printed 5/18/98)
  131.  
  132.  
  133.  
  134.